@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">

            <input type="hidden" id="id" value="${item.id}">
			<input type="hidden" id="typeValue" value="${item.type}">
            <div class="row">
                <div class="col-sm-6 b-r">
                            <#input id="activityId" name="活动id" value="${item.activityId}" underline="true" readonly="readonly"/>
                            <#select id="type" name="奖项类型">
								<option value="0">奖金</option>
								<option value="1">金币</option>
								<option value="2">奖品</option>
							</#select>
                            <#input id="count" name="奖项数量 默认-1不限" value="${item.count}" underline="true"/>
                            <#input id="value" name="奖项面值" value="${item.value}" underline="true"/>
                            <#input id="winRate" name="中奖概率 单位%" value="${item.winRate}" />
                </div>

                <div class="col-sm-6">
                			<#avatar id="imgUrl" name="奖项图片" underline="true" value="${item.imgUrl}"/>
                            <#input id="name" name="奖项名称" value="${item.name}" underline="true"/>
                            <#input id="sort" name="排序" value="${item.sort}" underline="true"/>
                            <#input id="status" name="状态(0:有效，1无效)" value="${item.status}" underline="true"/>
                </div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="AwardsInfoDlg.editSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="AwardsInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/api/awards/awards_info.js"></script>
@}
